﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using OpenBlog.IDAL;
using System.Reflection;

namespace OpenBlog.DALFactory
{
    public class DataAccess
    {
        private static readonly string path = ConfigurationManager.AppSettings["DAL"];

        public static IUsersDAL CreateUser()
        {
            string className = path + ".UsersDAL";
            return (IUsersDAL)Assembly.Load(path).CreateInstance(className);
        }
    }
}
